package com.wh;

public class Child {

    private int s=s();
    private static String name;

    static {
        System.out.println("我是静态代码块！！！！！！所以我不能用this~"+name);
    }

    {
        System.out.println(this+"我是动态代码块"+this.name);
    }
    public Child(String name) {
        this.name = name;
        System.out.println(this+"我是构造方法"+this.name);
    }

    public static void main(String[] args) {
        Child child=new Child("张三");
        System.out.println(child+"普通方法"+child.name);
    }
    public int s(){
        System.out.println(1);
        return 1;
    }
    public static void ss(){
        System.out.println("ss");
    }
}